body {
    background-color: #011b58;
}

//banner
.banner {
    img {
        width: 100%;
    }
}

//列表导航
.nav-list {
    color: #fff;
    font-size: 18px;

    ul {
        display: flex;
        flex-wrap: wrap;

        li {
            // border: 1px solid #fff;
            width: 20%;
            padding: 5px;

            .container {
                background-color: #6745b5;
                border-radius: 5px;
                display: flex;
                justify-content: space-between;
                padding: 10px;

                div {
                    &:nth-of-type(2) {
                        background-color: #011b58;
                        height: 20px;
                        width: 20px;
                        line-height: 20px;
                        text-align: center;
                        border-radius: 3px;
                    }
                }
            }
        }
    }
}

//书籍列表
.book-list {
    ul {
        display: flex;
        flex-wrap: wrap;

        li {
            width: 50%;
            // border: 1px solid #fff;
            padding: 10px;
            position: relative;

            a {
                display: block;
                color: #000;

                img {
                    width: 100%;
                    border-radius: 10px;
                }
            }

            span {
                display: block;
                position: absolute;
                bottom: 25px;
                right: 25px;
                background-color: red;
                border-radius: 5px;

                a {
                    font-size: 18px;
                    color: #fff;
                    padding: 5px 8px;
                    width: 54px;
                }
            }

            div {
                background-color: #fff;
                border-radius: 10px;

                p {
                    font-size: 20px;
                    line-height: 35px;
                    padding: 5px;

                    strong {
                        color: red;
                    }

                    em {
                        text-decoration: line-through;
                        color: rgba(109, 102, 102, 0.5);
                    }

                    a {
                        text-overflow: ellipsis;
                        overflow: hidden;
                        white-space: nowrap;
                        font-size: 20px;
                    }
                }
            }
        }
    }
}

// 750-645 105
// 645-530 115
// 530-430 100
// 430-320 110
// 320

@media screen and (min-width: 645px) and (max-width: 750px) {
    .nav-list {
        font-size: 16px;
    }
}

@media screen and (min-width: 530px) and (max-width: 645px) {
    .nav-list {
        font-size: 16px;

        ul {
            li {
                width: 25%;
            }
        }
    }
}

@media screen and (min-width: 430px) and (max-width: 530px) {
    .nav-list {
        font-size: 16px;

        ul {
            li {
                width: 33.333%;
            }
        }
    }
}

@media screen and (min-width: 320px) and (max-width: 450px) {
    .nav-list {
        font-size: 16px;

        ul {
            li {
                width: 50%;
            }
        }
    }

    .book-list {
        ul {
            li {
                width: 100%;
            }
        }
    }
}

@media screen and (max-width: 320px) {
    .banner {
        width: 320px;
    }

    .nav-list {
        width: 320px;

        ul {
            width: 320px;

            li {
                width: 320px;
            }
        }
    }

    .book-list {
        width: 320px;

        ul {
            width: 320px;

            li {
                width: 320px;
            }
        }
    }
}